package com.buaa.aimall.computeModule.Entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

import java.time.LocalDateTime;

@TableName(value = "compute_resource")
@FieldNameConstants
@Data
@Builder
public class ComputeResourceEntity {
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField("fk_owner")
    private String owner;

    @TableField("fk_compute")
    private String compute;

    @TableField("end_time")
    private LocalDateTime endTime;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField("resource_id")
    private String resourceId;

    @TableField("jupyter_url")
    private String jupyterUrl;

    @TableField("ssh_command")
    private String sshCommand;

    @TableField("ssh_password")
    private String sshPassword;
}
